//
// Created by htlin on 2021/3/2 0002.
//

#ifndef LIBUVTEST_RUNNABLEIMPL_H
#define LIBUVTEST_RUNNABLEIMPL_H

#include "encapsulation/Runnable.h"

class ThreadAsync;

class RunnableImpl : public Runnable {
public:

protected:
public:
    explicit RunnableImpl(int num, ThreadAsync *threadAsync);

    ~RunnableImpl();

protected:
    void run() override;

    void finish(bool isCancel) override;

private:
    int num;
    ThreadAsync *threadAsync;
};


#endif //LIBUVTEST_RUNNABLEIMPL_H
